package com.datareport.data.mapper;

import com.datareport.data.entity.UserRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author DataReport
 * @since 2021-11-17
 */
public interface UserRoleMapper extends BaseMapper<UserRole> {


    @Delete("Delete from user_role WHERE user_id = #{id}")
    void deleteByUserId(Long id);
}

